class FieldTypeRename < ActiveRecord::Migration
  def up
    remove_column :references, :type
    add_column :references, :binding_type, :string
    remove_column :components, :type
    add_column :components, :component_type, :string
    remove_column :reports, :type
    add_column :reports, :report_type, :string
    remove_column :services, :type
    add_column :services, :binding_type, :string
  end

  def down
    remove_column :references, :binding_type
    add_column :references, :type, :string
    remove_column :components, :component_type
    add_column :components, :type, :string
    remove_column :reports, :report_type
    add_column :reports, :type, :string
    remove_column :services, :binding_type
    add_column :services, :type, :string
  end
end
